/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lector;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

/**
 *
 * @author Educacionit
 */
public class Escritor {

        public static void main(String[] args) throws IOException {
          File archOut = new File("Salida.txt");

               FileWriter out = null;
               BufferedWriter writer = null;
            try {
               
               out = new FileWriter(archOut);
               writer = new BufferedWriter(out);

               String info = "uno es lo que hace"+
                       "y no lo que dice ser";

               for( int i = 0;i < info.length(); i++ ){
                   writer.write(info.charAt(i));
               }

            } catch (Exception e) {
                
                e.printStackTrace();
            }finally{
                writer.close();
                out.close();

                
            }
            
            
        }



}
